<template>
    <el-card class="box-card" style="width: 1180px">
      <div slot="header" class="clearfix">
        <el-form :inline="true" :model="query">
          <el-form-item> </el-form-item>
        </el-form>
      </div>
      <el-table :data="InfoVosWeiList" border style="width: 100%">
        <el-table-column prop="diNumber" label="借款编号" >
        </el-table-column>
        <el-table-column prop="diName" label="借款人姓名">
        </el-table-column>
        <el-table-column prop="diPayMethod" label="贷款方式">
        </el-table-column>
        <el-table-column prop="diDebitStatus" label="审核状态">
        </el-table-column>
        <el-table-column prop="productName" label="申请产品">
        </el-table-column>
        <el-table-column label="操作" width="180">
          <template slot-scope="scope">
            <el-popconfirm
              title="这是一段内容确定删除吗？"
              @confirm="handleDelete(scope.row.id)"
            >
            </el-popconfirm>
            <el-button
              type="info"
              size="mini"
              @click="seedetailsPage(scope.row.uinfoId)"
              >查看详情</el-button
            >
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </template>
      
      <script>
  export default {
    data() {
      return {
        
        InfoVosWeiList: [],
        query: {},
        addForm: {},
        updateForm: {},
      };
    },
    methods: {
      loadDebitinfosWei() {
        this.$axios.get("/debitinfos/ByDiDebitStatusWei").then((res) => {
          this.InfoVosWeiList = res.data.data.borrowerInfoVosWeiList;
        });
      },
      seedetailsPage(uinfoId) {
        this.$axios.get("/debitinfos/" + uinfoId).then((res) => {
          this.uinfoIdLoan = res.data.data.uinfoIdLoanNumber;
          // JSON.stringify(sessionStorage.setItem("uinfoIdLoan",this.uinfoIdLoan));
        });
        this.$router.push("/seedetailsFu?uinfoId=" + uinfoId);
      },
    },
    mounted() {
      this.loadDebitinfosWei();
    },
  };
  </script>